package com.me.mygdxgame.menu;

import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle;

public class MainMenu implements Screen {
	private float width, height;
	private Label label;
	private LabelStyle label_style;
	private SpriteBatch sprite_batch;

	public MainMenu(float w, float h) {
		super();
		
		this.width = w;
		this.height = h;
		
		this.label_style = new LabelStyle();
		this.label_style.fontColor = new Color();
		this.label_style.fontColor.set(0.5f, 0.5f, 1f, 1f);
		//this.label_style.fontColor.set(Color.BLACK);
		this.label_style.font = new BitmapFont();
		//this.label_style.font.setScale(1.5f);
		
		this.label = new Label("Main Menu", this.label_style);
		this.label.setPosition(this.width/2 - (this.label.getWidth()/2),
						this.height/2 + this.height/3 - (this.label.getHeight()/2));
		
		this.sprite_batch = new SpriteBatch();
	}
	
	@Override
	public void render(float delta) {
		this.sprite_batch.begin();
		this.label.draw(this.sprite_batch, 1f);
		this.sprite_batch.end();
	}

	@Override
	public void resize(int width, int height) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void show() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void hide() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void pause() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void resume() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void dispose() {
		// TODO Auto-generated method stub
		
	}

}
